package com.evision.webcrawler.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by wangys on 17-9-27.
 */
public class Task implements Serializable {
    private Integer id;
    private String taskName;
    private Integer acquisitionCount;
    private Integer monitorCount;
    private Integer state;
    @JSONField(format = "yyyy-MM-dd hh:mm:ss")
    private Date registTime;
    private String size;
    @JSONField(format = "yyyy-MM-dd hh:mm:ss")
    private Date startTime;
    private Integer userId;
    private Integer accuracy;
    private List<Target>  targets = null;
    private List<Range> ranges = null;
    private List<Result> result = null;

    public Task() {
    }

    public Task(Integer id, String taskName, Integer acquisitionCount, Integer monitorCount, Integer state, Date registTime, String size, Date startTime, Integer userId, Integer accuracy) {
        this.id = id;
        this.taskName = taskName;
        this.acquisitionCount = acquisitionCount;
        this.monitorCount = monitorCount;
        this.state = state;
        this.registTime = registTime;
        this.size = size;
        this.startTime = startTime;
        this.userId = userId;
        this.accuracy = accuracy;
    }

    public List<Result> getResult() {
        return result;
    }

    public void setResult(List<Result> result) {
        this.result = result;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getAcquisitionCount() {
        return acquisitionCount;
    }

    public void setAcquisitionCount(Integer acquisitionCount) {
        this.acquisitionCount = acquisitionCount;
    }

    public Integer getMonitorCount() {
        return monitorCount;
    }

    public void setMonitorCount(Integer monitorCount) {
        this.monitorCount = monitorCount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(Integer accuracy) {
        this.accuracy = accuracy;
    }

    public List<Target> getTargets() {
        return targets;
    }

    public void setTargets(List<Target> targets) {
        this.targets = targets;
    }

    public List<Range> getRanges() {
        return ranges;
    }

    public void setRanges(List<Range> ranges) {
        this.ranges = ranges;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", taskName='" + taskName + '\'' +
                ", acquisitionCount=" + acquisitionCount +
                ", monitorCount=" + monitorCount +
                ", state='" + state + '\'' +
                ", registTime=" + registTime +
                ", size='" + size + '\'' +
                ", startTime=" + startTime +
                ", userId=" + userId +
                ", accuracy=" + accuracy +
                ", targets=" + targets +
                ", ranges=" + ranges +
                '}';
    }
}
